
import { get, post, } from './index';
let baseURL = 'http://192.168.143.8:8087'
let api = 'http://172.16.12.254:8080'
let demo = "http://192.168.0.33:823";

// 停车场出入记录
export const _entryAndExitRecords = (data) => post(baseURL + '/tingche/get_parking_inout_info', data);

// 巡更管理
export const _patrolFrequency = () => get(baseURL + '/patrol/Patrolcount');

// 巡更记录
export const _patrolRecords = (data) => post(baseURL + '/patrol/PatrolLog', data);

// 监控数量
export const _monitoringNum = (data) => get(baseURL + '/camera/CameraCount', data);


// 门禁刷卡记录
export const _cardSwipingRecord = (data) => post(baseURL + '/reformer/interface/Alarm/cardrecord', data);

       
// 门禁报警记录---开门超时报警
export const _doorAlarmList = (data) => get(baseURL + '/reformer/interface/Alarm/timeout', data);

// 门禁报警记录---门禁离线报警
export const _doorOfflineList = (data) => get(baseURL + '/reformer/interface/Alarm/device');
// http://192.168.143.8:8087/reformer/interface/Alarm/device



// 门禁报警记录---厂商报警
// export const _MJUrgentEventRecordt = (data) => post2('http://172.16.12.254:8088/ocs/reformer/interface/MJUrgentEventRecord', data)

export const _MJUrgentEventRecordt = (data) => post('/api/ocs/reformer/interface/MJUrgentEventRecord', data)
// 消防设备管理
export const _fireEquipment = (data) => get(baseURL + '/fire/devicecount', data);

// 消防火灾报警统计
export const _fireAlarmStatistics = (data) => get(baseURL + '/fire/alalrmCountByMonth', data);

// 广播设备管理
export const _broadcastManagement = (data) => get(baseURL + '/broadcast/devicecount', data);

// 广播播放记录
export const _playbackRecord = (data) => post(baseURL + '/broadcast/hisplay', data);

// 车位管理
export const _stall = (data) => get(baseURL + '/read', data);

// 百叶窗设备数量
export const _louverNum = (data) => get(baseURL + '/baiye/devicecount', data);

// 报警-实时报警记录
// export const _realtimeAlarm = (data) => post('/realalarm', data);

// 信息发布-设备管理
export const _loopManagement = (data) => get(baseURL + '/xinxifabu/devicecount', data);

// 信息发布-播放记录
export const _loopplaybackRecord = (data) => get(baseURL + '/xinxifabu/playlist', data);

// 门禁设备数量
export const _numDevices = (data) => get(baseURL + '/reformer/interface/Alarm/devicecount', data);

// 百叶窗-故障列表
export const _controlledRrecord = (data) => get(baseURL + '/baiye/faultlist', data);